﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Nop.Web.Framework.Mvc;

namespace SpotsHub.Gateway.Models.Customer
{
    public partial class CustomerOrderListModel : BaseNopModel
    {
        public CustomerOrderListModel()
        {
            RecurringOrders = new List<RecurringOrderModel>();
            CancelRecurringPaymentErrors = new List<string>();
            OrderDaysOptions = new List<SelectListItem>();
            OrderStatusOptions = new List<SelectListItem>();
        }

        public IList<RecurringOrderModel> RecurringOrders { get; set; }
        public IList<string> CancelRecurringPaymentErrors { get; set; }

        public CustomerNavigationModel NavigationModel { get; set; }
        public int? OrderId { get; set; }
        public int? OrderDayOption { get; set; }
        public IList<SelectListItem> OrderDaysOptions { get; set; }
        public int? OrderStatus { get; set; }
        public IList<SelectListItem> OrderStatusOptions { get; set; }

        #region Nested classes
        public partial class OrderDetailsModel : BaseNopEntityModel
        {
            public string OrderTotal { get; set; }
            public bool IsReturnRequestAllowed { get; set; }
            public string OrderStatus { get; set; }
            public DateTime CreatedOn { get; set; }
            public string CreatedOnStr { get; set; }
            public string PaymentStatus { get; set; }
            public string DetailsStr { get; set; }
        }
        public partial class RecurringOrderModel : BaseNopEntityModel
        {
            public string StartDate { get; set; }
            public string CycleInfo { get; set; }
            public string NextPayment { get; set; }
            public int TotalCycles { get; set; }
            public int CyclesRemaining { get; set; }
            public int InitialOrderId { get; set; }
            public bool CanCancel { get; set; }
        }
        #endregion
    }
}